//
// Created by fengg on 2020/3/13.
//

#include <iostream>
char str[640] = {};
char deStr[640] = {};
int main(){

    std::cin.getline(str,640);
    int i=0;
    int temp=0;
    char tchar;
    while (str[i] != 0){

        if(str[i] <= '9')
            temp += (str[i]-'0')*16;
        else
            temp += (str[i]-'a'+10)*16;
        if(str[i+1] <= '9')
            temp += str[i+1]-'0';
        else
            temp += (str[i+1]-'a'+10);

        tchar = (char)temp;
        std::cout << tchar;
        temp =0;
        i+=3;
    }

}